import { createSSRApp } from "vue";
import App from "./App.vue";
import Vant from "vant";
import request from "@/utils/request";
import { createPinia } from "pinia";
import "vant/lib/index.css";
import "./global.css";

export function createApp() {
  const app = createSSRApp(App);
  const pinia = createPinia();

  app.config.globalProperties._get = request._get;
  app.config.globalProperties._post = request._post;

  app.use(Vant);
  app.use(pinia);
  // app.use(Swipe);
  // app.use(SwipeItem);

  return {
    app,
  };
}
